//
// Created by zhaog on 31/03/17.
//

#ifndef IMG_SVR_META_SVR_INTERFACE_H
#define IMG_SVR_META_SVR_INTERFACE_H

#include "MetaSvr.h"
#include "vector"
using std::vector;
using std::string;
namespace meta_svr {
    class MetaSvrInterface {
    public:
        static MetaSvrInterface &SingletonInstance() {
            static MetaSvrInterface msi;
            return msi;
        }

        void Init(string meta_svr_ip="116.31.112.83", unsigned int port=9090);
        int GetMeta(std::set<meta::MetaStruct>& metas,string beg_time,string end_time,string busi_type,string uid,string label="all",bool order_asc=true, unsigned long limit=0,string staff_id="dw_zhaogang1");

    private:
        string _meta_svr_ip;
        unsigned int _port;
    };
}


#endif //IMG_SVR_META_SVR_INTERFACE_H
